package com.jh.ios.forecast;

import android.os.Bundle;
import android.view.View;

import org.apache.cordova.CordovaActivity;

public class MainActivity extends CordovaActivity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setStatusBarBackgroundColor("#f8f8f8");

        View decorView = getWindow().getDecorView();
        int uiOptions = decorView.getSystemUiVisibility();
        decorView.setSystemUiVisibility(uiOptions | View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
        Bundle extras = getIntent().getExtras();
        if (extras != null && extras.getBoolean("cdvStartInBackground", false)) {
            moveTaskToBack(true);
        }
    }

}
